<?php
namespace haibao\ad\kafka;
class AdLog extends Base{
	const TOPIC_NAME = 'BMS_AD_LOG';
	
	private static $topicName = '';
	
	public function __construct(){
		self::setTopicName(self::TOPIC_NAME);
	}
	
	public function setTopicName($topicName = ''){
		if ($topicName){
			self::$topicName = $topicName;
		}
	}
	
	public function sendMeesage($message = ''){
		if ($message){
			parent::product(self::$topicName,$message);
		}
	}
}